<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
    'as'            => config('admin.route.prefix') . '.',
], function (Router $router) {
    // echo config('admin.route.prefix');exit;
    $router->get('/', 'HomeController@index')->name('home');
    $router->resource('stores/settle', SettleController::class);
    $router->get('stores/notAudit', 'StoreController@notAudit')->name('notAudit');
    $router->put('stores/notLink/{id}', 'StoreController@updateRemark');
    $router->get('stores/notLink', 'StoreController@notLink')->name('notLink');

    $router->resource('users', UserController::class);
    $router->resource('subsidies', SubsidyController::class);
    $router->resource('users-orders', OrderController::class);
    $router->resource('stores', StoreController::class);
    $router->resource('platform-balance-logs', PlatformBalanceLogController::class);
    $router->resource('platform-balance-day-logs', PlatformBalanceDayLogController::class);
    $router->resource('platform-balance-month-logs', PlatformBalanceMonthLogController::class);
    $router->resource('user-balance-logs', UserBalanceLogController::class);
    $router->resource('user-vip-orders', UserVipController::class);
    $router->resource('user-signs', UserSignController::class);
    $router->resource('meals', MealsController::class);
    $router->resource('meals-joins', MealsJoinController::class);
    $router->resource('banners', BannerController::class);
    $router->resource('fee-activities', FeeActivityController::class);
    $router->resource('configs', ConfigController::class);
    $router->resource('plat-form-balance-logs', PlatFormAccountController::class);
    $router->resource('frees', FreesController::class);

    $router->resource('user-stores', UserStoreController::class);
    $router->resource('user-order-dists', DistController::class);

});
